<?php
$table='tttj.share_config';
$sql="select * from $table where appid=$appid order by id asc";
$query=exec_db($sql);
while($value=mysqli_fetch_array($query,MYSQL_ASSOC))
{
    $sharelist[]=$value;
}
$content='<?php ';
$content .= "\$shareconfig_data = ".var_export($sharelist,true).";";
file_put_contents(S_ROOT."source/data/share_config{$appid}.php",$content);
exit;
?>